[
    async function( kuo,Context,context){
        var $THIS = this;
        let $DATA = Object.assign({},this.$DATA);
        $DATA.msg = CDNHOST;
        $DATA.code = 1;
        $DATA.data = {};
        let  $features = await Kuoplus(kuo.class);
        if($features.configure['采集密码']){
            delete($features.configure['采集密码']);
        }
        if($features.configure['通信密码']){
            delete($features.configure['通信密码']);
        }
        $DATA.data.config = $features.configure;
        $DATA.data.tuijian = [];
        let ID = Mode("Tools").Int(kuo.post["id"]?kuo.post["id"]:0);
        let TYPE = Mode("Tools").Int(kuo.post["type"]?kuo.post["type"]:1);
        let TUIJIAN = 0;
        if(ID > 0){
            let data = {};
            if(TYPE == 1){
                data = await $THIS.CENTER_find({off:2,id:ID});

            }else{
                data = await $THIS.TYPE_find({off:2,id:ID});

            }
            if(data){
                TUIJIAN  = data.subclass;
                $DATA.data.data = $THIS.JieData(data,$features.configure['隐藏字段']);
                let data_ = await $THIS.TYPE_find({id:data.subclass});
                if(data_){
                    $DATA.data.zdata = $THIS.JieData(data_,$features.configure['隐藏字段']);
                }
            }
        }
        let $where = {'off':2};
        if(TUIJIAN > 0){
            $where = {'subclass IN': await $THIS.TYPE_BAOHAN(TUIJIAN),'off':2};
        }
        let typex =  await $THIS.CENTER_select($where,"sortsize desc",10);
        if(typex){
            let $TYPE = [];
            for(var xx  in typex){
                let xxx = typex[xx];
                if(xxx.id != ID){
                    $TYPE.push($THIS.JieData(xxx,$features.configure['隐藏字段']));
                }
            }
            $DATA.data.tuijian =  $TYPE;
        }
        return  json_encode($DATA);
    }
]